﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using FOSystem.CultureHelper;
using Bussiness.Articles;
using FOModels.Language;
using Bussiness.Language;
namespace FO.Controllers
{
    public class CareerController : CultureController
    {
        //
        // GET: /Career/

        public ActionResult Index()
        {
            ArticlesBLL bll = new ArticlesBLL();
            LanguageBLL langbll = new LanguageBLL();
            int ArticlesCateCareerID = int.Parse(System.Configuration.ConfigurationManager.AppSettings["ArticlesCateCareerID"].ToString());
            Language lang = langbll.getLangByCode(Request.Cookies["_culture"]["lang"]);
            ViewBag.Career = bll.getArticlesByCateIDShow(ArticlesCateCareerID, lang.LangID);
            return View();
        }

    }
}
